<?php
/**
 * @file post.config.php
 * @author Alejandro Dario Simi
 * @date $Date: 2013-06-22 17:58:11 +0000 (Sat, 22 Jun 2013) $
 *
 * $Id: post.config.php 83 2013-06-22 17:58:11Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/tags/wcomix-1.0.0.1/config/post.config.php $
 */


//
// Configuring cron actions.
if(defined("__SHELL__")) {
	$wcCronScripts["comic.updatenames"]	= array(
			"auto"		=> true,
			"enabled"	=> true,
			"name"		=> "Comic names update",
			"path"		=> "{$wcPaths["cron-directory"]}/ct.comic.updatenames.php",
			"class"		=> "WCComicsUpdateNames",
			"url"		=> "http://code.google.com/p/wcomix/"
	);
	$wcCronScripts["directory.updatenames"]	= array(
			"auto"		=> true,
			"enabled"	=> true,
			"name"		=> "Directory names update",
			"path"		=> "{$wcPaths["cron-directory"]}/ct.directory.updatenames.php",
			"class"		=> "WCDirectoriesUpdateNames",
			"url"		=> "http://code.google.com/p/wcomix/"
	);
	$wcCronScripts["lists.update"]	= array(
			"auto"		=> true,
			"enabled"	=> true,
			"name"		=> "Comic list update",
			"path"		=> "{$wcPaths["cron-directory"]}/ct.lists.update.php",
			"class"		=> "WCComicsUpdateList",
			"url"		=> "http://code.google.com/p/wcomix/"
	);
	$wcCronScripts["rules.run"]	= array(
			"auto"		=> true,
			"enabled"	=> true,
			"name"		=> "Rules",
			"path"		=> "{$wcPaths["cron-directory"]}/ct.rules.run.php",
			"class"		=> "WCRulesRun",
			"url"		=> "http://code.google.com/p/wcomix/"
	);

	require_once "{$wcPaths["cron-directory"]}/ct.autotag.updateNOTAG.php";
	require_once "{$wcPaths["cron-directory"]}/ct.autotag.updateFEWTAGS.php";
	require_once "{$wcPaths["cron-directory"]}/ct.garbage.move.php";

	$wcCronScripts["lists.losts"]	= array(
			"auto"		=> true,
			"enabled"	=> true,
			"name"		=> "Finding losts",
			"path"		=> "{$wcPaths["cron-directory"]}/ct.lists.losts.php",
			"class"		=> "WCListsLosts",
			"params"	=> array(
					"--solve-comics",
					"--solve-members",
					"--solve-tags",
					"--solve-collections",
					"--solve-rates",
					"--solve-users"
			),
			"url"		=> "http://code.google.com/p/wcomix/"
	);
	$wcCronScripts["statistics.update"]	= array(
			"auto"		=> true,
			"enabled"	=> true,
			"name"		=> "Update Statistics",
			"path"		=> "{$wcPaths["cron-directory"]}/ct.statistics.update.php",
			"class"		=> "WCUpdateStatistics",
			"params"	=> array(
					"--rates"
			),
			"url"		=> "http://code.google.com/p/wcomix/"
	);
	$wcCronScripts["previews.update"]	= array(
			"auto"		=> true,
			"enabled"	=> true,
			"name"		=> "Autogenerate Previews",
			"path"		=> "{$wcPaths["cron-directory"]}/ct.previews.update.php",
			"class"		=> "WCComicsAutopreviews",
			"url"		=> "http://code.google.com/p/wcomix/"
	);
	$wcCronScripts["search.updateindex"]	= array(
			"auto"		=> true,
			"enabled"	=> true,
			"name"		=> "Update Search Index",
			"path"		=> "{$wcPaths["cron-directory"]}/ct.search.updateindex.php",
			"class"		=> "WCUpdateSearchIndex",
			"url"		=> "http://code.google.com/p/wcomix/"
	);
	ksort($wcCronScripts);

	ksort($wcToolScripts);
}

?>
